package com.testmanager.testmananger.shuiyou.common.respository;

import com.testmanager.testmananger.shuiyou.common.domain.SyUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SyUserRepository extends JpaRepository<SyUserEntity,Long> {

    List<SyUserEntity> findAllByUsernameAndPassword(String username, String password);
    SyUserEntity findByUsernameAndPassword(String username, String password);

    SyUserEntity findByUsername(String username);
}
